Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting time in MetaDataBuilder #124

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

lnyng
Copy link
Contributor

@lnyng lnyng commented Jun 27, 2024

The time fields (accessed, modified) in MetaData are currently not changeable, but it's supported by the protocol.

Setting time attributes of a file could be useful for many cases, especially to workaround the coarse timestamp granularity (seconds) of sftp. By setting timestamps, we can then tell if a file has been modified within a second.

The time fields (accessed, modified) in MetaData are currently not changeable, but it's supported by the protocol.

Setting time attributes of a file could be useful for many cases, especially to workaround the coarse timestamp granularity (seconds) of sftp. By setting timestamps, we can then tell if a file has been modified within a second.
Copy link
Member

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

LGTM

@NobodyXu NobodyXu added this pull request to the merge queue Jun 27, 2024
Merged via the queue into openssh-rust:main with commit f5a0e3f Jun 27, 2024
4 of 5 checks passed
@lnyng lnyng deleted the metadata-set-time branch June 27, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants